package cn.hncum.feign.clients;

import cn.hnucm.bean.TbHbBasis;
import cn.hnucm.bean.TbHbRelation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Author:liweihua
 * @Description:
 * @Date: 11:27$ 2021/12/29/029$
 * @Modified:
 */
@FeignClient("serchhbservice")
public interface HbClient {
    @GetMapping("/serchhbservice/tbHbBasis/getHbBasis/{hbId}")
    public List<TbHbBasis> getHbInfoById(@PathVariable("hbId") int hbId);

    //修改皇榜为被接中
    @PostMapping("/serchhbservice/tbHbRelation/updateHbRelation")
    public boolean addOrder(@RequestBody TbHbRelation tbHbRelation);
}
